echo "This script can install the scripts necessary to start the license manager"
echo "when this system is rebooted. If this system is not being used as a license"
echo "server, you may choose to skip this installation. For those who prefer,"
echo "sample boot scripts for System V and BSD systems are available in"
echo "${BXDIR}/examples/lm.sysv and"
echo "${BXDIR}/examples/lm.bsd"
echo ""
if ( test "${SYSTYPE}" = "sysv" )
then
echo "On this system the lm.sysv file will be customized with the information"
echo "you have provided here. It will be copied to /etc/init.d/icslmgr and the"
echo "symbolic links /etc/rc2.d/S76icslmgr and /etc/rc0.d/K30icslmgr will be made."
else
echo "On this system the lm.bsd file will be customized with the information"
echo "you have provided here. It will then be appended to the system boot file --"
echo "rc.local. A copy of rc.local will be saved in rc.local.old"
fi
echo ""
echo ""
HELP="boot"
HELPTITLE="Boot Script Installation"
PromptUser "Do you want to install the boot scripts?" "y"
CONT=NO
while test "${CONT}" = "NO"
do
case "$USERPROMPT"
in
[Nn] | [Nn][Oo])
BOOTINSTALL=NO
CONT=YES
;;
[Yy] | [Yy][Ee] | [Yy][Ee][Ss])
BOOTINSTALL=YES
CONT=YES
;;
*)
echo "Please answer \`y\` or \`n\`"
CONT=NO
;;
esac
done
else
echo ""
echo "This script cannot install the scripts necessary to start the license manager"
echo "when this system is rebooted. If this system is being used as a license"
echo "server, you will have to modify the system boot scripts manually. Sample"
echo "boot scripts for System V and BSD systems are available in"
echo "${BXDIR}/examples/lm.sysv and"
echo "${BXDIR}/examples/lm.bsd"
echo ""
echo ""
echo ""
AwaitEnter
BOOTINSTALL=NO
fi
LMLOGFILE="${LMLICDIR}/flexlm.log"
if ( test "${BOOTINSTALL}" = "YES" )
then
HELP="logfile"
HELPTITLE="License Manager Log File"
PromptUser "Enter the log file for the license manager" "${LMLOGFILE}"
LMLOGFILE="$USERPROMPT"
sed -e "s?LOG_FILE_NAME?${LMLOGFILE}?g" ${BXDIR}/examples/lm.${SYSTYPE} | sed -e "s?LMGR_LOCATION?${LMDIR}?g" | sed -e "s?LICENSE_FILE?${LMLICDIR}/${LMLICFILE}?g" > /tmp/lmboot
if ( test "${SYSTYPE}" = "sysv" )
then
if test -x /etc/init.d/icslmgr
then
mv /etc/init.d/icslmgr /etc/init.d/icslmgr.old
fi
mv /tmp/lmboot /etc/init.d/icslmgr
chmod 755 /etc/init.d/icslmgr
if test -x "/etc/rc2.d/S76icslmgr"
then
rm -f /etc/rc2.d/S76icslmgr
fi
${LN} /etc/init.d/icslmgr /etc/rc2.d/S76icslmgr
if test -x "/etc/rc0.d/K30icslmgr"
then
rm -f /etc/rc0.d/K30icslmgr
fi
${LN} /etc/init.d/icslmgr /etc/rc0.d/K30icslmgr
else
cp /etc/rc.local /etc/rc.local.old
cat /tmp/lmboot >> /etc/rc.local
rm -f /tmp/lmboot
fi
echo ""
echo "License Manager Boot Time start scripts installed."
echo ""
echo ""
AwaitEnter
fi
Clear
Title "Start the Flexible License Manager"
HELP="startlm"
HELPTITLE="Start License Manager"
PromptUser "Do you want to start the License Manager on this machine?" "y"
CONT=NO
while test "${CONT}" = "NO"
do
case "$USERPROMPT"
in
[Nn] | [Nn][Oo])
STARTLM=NO
CONT=YES
;;
[Yy] | [Yy][Ee] | [Yy][Ee][Ss])
STARTLM=YES
CONT=YES
;;
*)
echo "Please answer \`y\` or \`n\`"
CONT=NO
;;
esac
done
if ( test "${STARTLM}" = "YES" )
then
HELP="logfile"
HELPTITLE="License Manager Log File"
PromptUser "Enter the log file for the license manager" "${LMLOGFILE}"
LMLOGFILE="$USERPROMPT"
${LMGRDCMD} > ${LMLOGFILE} &
echo ""
echo "See ${LMLOGFILE} for License Manager status."
echo ""
AwaitEnter
fi
Title "Starting the Flexible License Manager"
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo "To start the the License Manager manually, use the following command"
echo "line:"
echo ""
echo ""
echo " ${LMGRDCMD} > ${LMLOGFILE} &"
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
AwaitEnter
if test "${NONDEFAULT}" = "YES"
then
Title "I M P O R T A N T N O T E"
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo " Because you have installed the license file in a non-default"
echo " directory or with a non-default name, you will have to set the"
echo " LM_LICENSE_FILE environment variable when running the Builder"
echo " Xcessory. See the Builder Xcessory documentation for more"
echo " information regarding the use of this environment variable."
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
AwaitEnter
fi
Title "Full Use Licenses"
echo ""
echo ""
echo ""
echo ""
echo ""
echo "If you have purchased a full functionality license, please"
echo "contact your ICS Technical Support for your license keys."
echo ""
echo ""
echo "Please provide the following information:"
echo ""
echo " serial number from your Builder Xcessory media"
echo " hostname of EACH license server machine"
echo " hostid of EACH license server machine"
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
AwaitEnter
Clear
Title "Where to Get More Information"
echo ""
echo ""
echo ""
echo ""
echo ""
echo "The installation of the BX License Manager is complete. The license file is"
echo "${LMLICDIR}/${LMLICFILE}."
echo ""
echo "This file should be modified to add additional license servers."
echo "See the accompanying Builder Xcessory documentation for more information"
echo "regarding the modification of the license file."